/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jpa.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Usuario
 */
@Entity
@Table(name = "gastoimportacion", catalog = "Sig", schema = "")
@NamedQueries({
    @NamedQuery(name = "Gastoimportacion.findAll", query = "SELECT g FROM Gastoimportacion g"),
    @NamedQuery(name = "Gastoimportacion.findByIdGastoImportacion", query = "SELECT g FROM Gastoimportacion g WHERE g.idGastoImportacion = :idGastoImportacion"),
    @NamedQuery(name = "Gastoimportacion.findByFlete", query = "SELECT g FROM Gastoimportacion g WHERE g.flete = :flete"),
    @NamedQuery(name = "Gastoimportacion.findByGastoAgencia", query = "SELECT g FROM Gastoimportacion g WHERE g.gastoAgencia = :gastoAgencia"),
    @NamedQuery(name = "Gastoimportacion.findByIvaDespacho", query = "SELECT g FROM Gastoimportacion g WHERE g.ivaDespacho = :ivaDespacho"),
    @NamedQuery(name = "Gastoimportacion.findByGastos", query = "SELECT g FROM Gastoimportacion g WHERE g.gastos = :gastos"),
    @NamedQuery(name = "Gastoimportacion.findByTransfBancaria", query = "SELECT g FROM Gastoimportacion g WHERE g.transfBancaria = :transfBancaria")})
public class Gastoimportacion implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "idGastoImportacion", nullable = false)
    private Integer idGastoImportacion;
    @Basic(optional = false)
    @Column(name = "flete", nullable = false)
    private double flete;
    @Basic(optional = false)
    @Column(name = "gastoAgencia", nullable = false)
    private double gastoAgencia;
    @Basic(optional = false)
    @Column(name = "ivaDespacho", nullable = false)
    private double ivaDespacho;
    @Basic(optional = false)
    @Column(name = "gastos", nullable = false)
    private double gastos;
    @Basic(optional = false)
    @Column(name = "transfBancaria", nullable = false)
    private double transfBancaria;

    public Gastoimportacion() {
    }

    public Gastoimportacion(Integer idGastoImportacion) {
        this.idGastoImportacion = idGastoImportacion;
    }

    public Gastoimportacion(Integer idGastoImportacion, double flete, double gastoAgencia, double ivaDespacho, double gastos, double transfBancaria) {
        this.idGastoImportacion = idGastoImportacion;
        this.flete = flete;
        this.gastoAgencia = gastoAgencia;
        this.ivaDespacho = ivaDespacho;
        this.gastos = gastos;
        this.transfBancaria = transfBancaria;
    }

    public Integer getIdGastoImportacion() {
        return idGastoImportacion;
    }

    public void setIdGastoImportacion(Integer idGastoImportacion) {
        this.idGastoImportacion = idGastoImportacion;
    }

    public double getFlete() {
        return flete;
    }

    public void setFlete(double flete) {
        this.flete = flete;
    }

    public double getGastoAgencia() {
        return gastoAgencia;
    }

    public void setGastoAgencia(double gastoAgencia) {
        this.gastoAgencia = gastoAgencia;
    }

    public double getIvaDespacho() {
        return ivaDespacho;
    }

    public void setIvaDespacho(double ivaDespacho) {
        this.ivaDespacho = ivaDespacho;
    }

    public double getGastos() {
        return gastos;
    }

    public void setGastos(double gastos) {
        this.gastos = gastos;
    }

    public double getTransfBancaria() {
        return transfBancaria;
    }

    public void setTransfBancaria(double transfBancaria) {
        this.transfBancaria = transfBancaria;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idGastoImportacion != null ? idGastoImportacion.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Gastoimportacion)) {
            return false;
        }
        Gastoimportacion other = (Gastoimportacion) object;
        if ((this.idGastoImportacion == null && other.idGastoImportacion != null) || (this.idGastoImportacion != null && !this.idGastoImportacion.equals(other.idGastoImportacion))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "jpa.entities.Gastoimportacion[idGastoImportacion=" + idGastoImportacion + "]";
    }

}
